import request from '@/utils/request'

// 查询数据采集卡列表
export function listCard(query) {
  return request({
    url: '/business/card/list',
    method: 'get',
    params: query
  })
}

// 查询数据采集卡详细
export function getCard(acquisitionCardId) {
  return request({
    url: '/business/card/' + acquisitionCardId,
    method: 'get'
  })
}

// 新增数据采集卡
export function addCard(data) {
  return request({
    url: '/business/card',
    method: 'post',
    data: data
  })
}

// 修改数据采集卡
export function updateCard(data) {
  return request({
    url: '/business/card',
    method: 'put',
    data: data
  })
}

// 删除数据采集卡
export function delCard(acquisitionCardId) {
  return request({
    url: '/business/card/' + acquisitionCardId,
    method: 'delete'
  })
}

// 导出数据采集卡
export function exportCard(query) {
  return request({
    url: '/business/card/export',
    method: 'get',
    params: query
  })
}